package cn.gzy.service;

import cn.gzy.pojo.Attention;
import cn.gzy.util.PageUtil;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;

import java.util.List;

public interface AttentionService {
    // 插入关注关系
    @Insert("INSERT INTO attention (from, to, attention_date) VALUES (#{from}, #{to}, #{attentionDate})")
    @Options(useGeneratedKeys = true, keyProperty = "attentionId", keyColumn = "attention_id")
    Integer insertAttention(Attention attention);
}